/**
 * 商品评论信息查询DTO
 */
import OrderByDTO from '@/api/entity/OrderByDTO'

export default class SimpleReviewQueryDTO extends OrderByDTO {
  static instance () {
    return new SimpleReviewQueryDTO()
  }

  /**
   * 设置id
   * @param {Array<String|Number>} id
   */
  setId (id) {
    if (id) {
      this.id = id
    }
  }

  /**
   * 添加id
   * @param {String|Number} id
   */
  addId (id) {
    if (id) {
      if (this.id) {
        this.id.push(id)
      } else {
        this.id = [id]
      }
    }
  }

  /**
   * 设置userId
   * @param {Array<String|Number>} userId
   */
  setUserId (userId) {
    if (userId) {
      this.userId = userId
    }
  }

  /**
   * 添加userId
   * @param {String|Number} userId
   */
  addUserId (userId) {
    if (userId) {
      if (this.userId) {
        this.userId.push(userId)
      } else {
        this.userId = [userId]
      }
    }
  }

  /**
   * 设置storeId
   * @param {Array<String|Number>} storeId
   */
  setStoreId (storeId) {
    if (storeId) {
      this.storeId = storeId
    }
  }

  /**
   * 添加storeId
   * @param {String|Number} storeId
   */
  addStoreId (storeId) {
    if (storeId) {
      if (this.storeId) {
        this.storeId.push(storeId)
      } else {
        this.storeId = [storeId]
      }
    }
  }

  /**
   * 设置goodId
   * @param {Array<String|Number>} goodId
   */
  setGoodId (goodId) {
    if (goodId) {
      this.goodId = goodId
    }
  }

  /**
   * 添加goodId
   * @param {String|Number} goodId
   */
  addGoodId (goodId) {
    if (goodId) {
      if (this.goodId) {
        this.goodId.push(goodId)
      } else {
        this.goodId = [goodId]
      }
    }
  }

  /**
   * 设置scoreBegin
   * @param {Number|String} scoreBegin
   */
  setScoreBegin (scoreBegin) {
    if (scoreBegin) {
      this.scoreBegin = scoreBegin
    }
  }

  /**
   * 设置scoreEnd
   * @param {Number|String} scoreEnd
   */
  setScoreEnd (scoreEnd) {
    if (scoreEnd) {
      this.scoreEnd = scoreEnd
    }
  }

  /**
   * 设置praiseBegin
   * @param {Number|String} praiseBegin
   */
  setPraiseBegin (praiseBegin) {
    if (praiseBegin) {
      this.praiseBegin = praiseBegin
    }
  }

  /**
   * 设置praiseEnd
   * @param {Number|String} praiseEnd
   */
  setPraiseEnd (praiseEnd) {
    if (praiseEnd) {
      this.praiseEnd = praiseEnd
    }
  }
}
